package com.webchat.chat.dao;

import com.webchat.chat.core.Mapper;
import com.webchat.chat.model.Role;

import java.util.List;

public interface RoleMapper extends Mapper<Role> {
    List<Role> findRolesByUserId(String userId);

    /**
     * 根据用户ID查找此所有角色名
     * @param userId 用户ID
     * @return
     */
    List<String> findRoleNamesByUserId(String userId);

    List<Role> findRoleByInfo(Role role);
}